package com.shape.sdk;

import java.io.Serializable;

/**
 * Created by ouzhiyin on 23/01/2018.
 */

public class FitnessData implements Serializable, Cloneable {
  CourseUser user;
  int heartRate;
  int calories;
  int percent;
  int rank;

  public CourseUser getUser() {
    return user;
  }

  public int getHeartRate() {
    return heartRate;
  }

  public float getCalories() {
    return calories;
  }

  public int getPercent() {
    return percent;
  }

  public int getRank() {
    return rank;
  }

  public FitnessData clone() {
    FitnessData fitnessData;
    try {
      fitnessData = (FitnessData) super.clone();
    } catch (CloneNotSupportedException e) {
      fitnessData = new FitnessData();
    }
    fitnessData.user = this.user.clone();
    fitnessData.percent = this.percent;
    fitnessData.calories = this.calories;
    fitnessData.rank = this.rank;
    return fitnessData;
  }

}
